import request from '@/request'

// 查询参数列表
export function listUserMessage(query) {
  return request({
    url: '/resources/userMessage/list',
    method: 'get',
    params: query
  })
}

// 查询参数详细
export function getUserMessage(userMessageId) {
  return request({
    url: '/resources/userMessage/' + userMessageId,
    method: 'get'
  })
}

// 新增参数配置
export function addUserMessage(data) {
  return request({
    url: '/resources/userMessage',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updateUserMessage(data) {
  return request({
    url: '/resources/userMessage',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delUserMessage(userMessageId) {
  return request({
    url: '/resources/userMessage/' + userMessageId,
    method: 'delete'
  })
}
